<?php
include ("comprobarSesion.php");
noSesion();

include '../bbdd/usuariosBbdd.php';

$social = array(
    'facebook' => $_POST['facebook'],
    'twitter' => $_POST['twitter'],
    'googleplus' => $_POST['googleplus'],
    'linkedin' => $_POST['linkedin'],
    'pinterest' => $_POST['pinterest'],
    'youtube' => $_POST['youtube']
 );

if (actualizarSocial($social,$_SESSION['uid'])) {
    header('location: ../usuarios/miPerfil.php');
} else {
    echo 'ERROR AL MODIFICAR';
}